const { db, query } = require("../../db/db");
const util = require("util");
const moment = require("moment");

async function GetCircleTypeList(req, res) {
  const Select_circleList = util.format(
    "SELECT CircleTypeId, \
    IFNULL(CircleTypeName, '') AS CircleTypeName, \
    IFNULL(CreateTime, '') AS CreateTime, \
    IFNULL(CreateUser, '') AS CreateUser \
  FROM CircleType"
  );

  const Select_Circle_res = await query(Select_circleList);

  res.send({
    status: 0,
    CircleTypeList: Select_Circle_res,
  });
}

module.exports = { GetCircleTypeList };
